Skip to content

use page_size=1 for instrumented components - #15

Open
chenyan2002 wants to merge 9 commits into
mainfrom
one-byte-page
Open

chenyan2002 wants to merge 9 commits into
mainfrom
one-byte-page

Conversation

@chenyan2002

@chenyan2002 chenyan2002 commented Apr 17, 2026 •

Copy link
Copy Markdown
Owner

wasi-libc from Rust is built with -fPIC, and doesn't respect custom page size. To work around this, we need to redirect dlmalloc to Rust's allocator talc.

Another option is to use wit-bindgen to call stdout, instead of println!. But the libc-alloc approach is more transparent.

TODO: CI error needs to bump rustc, which means we also need to bump viceroy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant